package com.uni.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * --------------project-------------
 *
 * @Author Unirithe  - Mr.Chao
 * - CSDN:
 * https://blog.csdn.net/Unirithe
 * - GitHub:
 * https://github.com/unirithe
 * @create 2021/12/21 18:43
 * ------------------------------------------
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Commodity {
    private int id;
    private int tid;
    private String typeName;
    private int uid;
    private String userName;
    private String name;
    private String info;
    private String img;
    private float price;
    public Commodity(int tid, int uid, String name, String info, String img, float price){
        this.tid = tid;
        this.uid = uid;
        this.name = name;
        this.info = info;
        this.img = img;
        this.price = price;
    }

    public Commodity(int id, int tid, int uid, String name, String info, String img, float price){
        this.id = id;
        this.tid = tid;
        this.uid = uid;
        this.name = name;
        this.info = info;
        this.img = img;
        this.price = price;
    }
}
